start = $start; $this->end = $end; if ($end < $start) { throw new ShouldNotHappenException(); } } public function getStart() : int { return $this->start; } public function getEnd() : int { return $this->end; } }